/*
 * Task_LpCfg.c
 *
 *  Created on: 2021��3��27��
 *      Author: DELL
 */
#include "Task_LCfg.h"
#include "Process.h"


const UserTaskConfig_T g_stUserTasks[USER_TASK_NUM]=
{
		/* feed watchdog task */
		[TASK_INDEX_WDG]={
			.pfTaskFunc   = MCU_FeedWdg,
			.u32DelayTime = 3,
			.u32CycleTime = 10,
			.u8TaskEnFlag = ENABLE,
		},
		[TASK_INDEX_ADC]={
			.pfTaskFunc   = Task_ADCUpdate,
			.u32DelayTime = 1,
			.u32CycleTime = 10,
			.u8TaskEnFlag = ENABLE,
		},
		[TASK_INDEX_INPUT]={
			.pfTaskFunc   = PWM_INPUT_Task,
			.u32DelayTime = 1,
			.u32CycleTime = 50,
			.u8TaskEnFlag = ENABLE,
		},
		[TASK_INDEX_LOGIC]={
			.pfTaskFunc   = Task_LightLogic,
			.u32DelayTime = 0,
			.u32CycleTime = 20,
			.u8TaskEnFlag = DISABLE,
		},
		[TASK_INDEX_ANMPLAY]={
			.pfTaskFunc   = Task_ProcessAnimaton,
			.u32DelayTime = 1,
			.u32CycleTime = 30,
			.u8TaskEnFlag = DISABLE,
		},
		[TASK_INDEX_GENERAL]={
			.pfTaskFunc   = Task_LightGeneral,
			.u32DelayTime = 1,
			.u32CycleTime = 50,
			.u8TaskEnFlag = ENABLE,
		},
		[TASK_INDEX_TURN]={
			.pfTaskFunc   = Turn_Task,
			.u32DelayTime = 1,
			.u32CycleTime = 20,
			.u8TaskEnFlag = ENABLE,
		},
		[TASK_INDEX_UPDATE]={
			.pfTaskFunc   = Task_LEDPWMUpdate,
			.u32DelayTime = 5,
			.u32CycleTime = 10,
			.u8TaskEnFlag = ENABLE,
		},
		[TASK_INDEX_TPSCHECK]={
			.pfTaskFunc   = Task_TpsCheck,
			.u32DelayTime = 10,
			.u32CycleTime = 50,
			.u8TaskEnFlag = ENABLE,
		},

};
